package com.learn.sc.springbootdemo.tools.enums;

public enum RetStatus {

    SUCCESS_STATUS("0000","处理成功"),
    UNKNOWN_ERROR_1111("1111","未知错误"),
    SELECT_FAILED_0001("0001","查询失败"),
    UPDATE_FAILED_0010("0010","更新失败"),
    UPDATE_FAILED_0100("0100","插入失败"),
    DELETE_FAILED_1000("1000","删除失败");

    private final String retCode;
    private final String retMsg;

    RetStatus(String retCode, String retMsg) {
        this.retCode = retCode;
        this.retMsg = retMsg;
    }

    public String getRetCode() {
        return retCode;
    }

    public String getRetMsg() {
        return retMsg;
    }
}
